package ticketing_system.Factory;

public class Price_Factory {
    public User get_select(int i) {
        if (i == 1) {
            return new Student();
        } else if (i == 2) {
            return new Child();
        } else if (i == 3) {
            return new vip();
        } else {
            System.out.println("您的输入有误，请重新输入");
            return null;
        }
    }
}
